package toman.jdbc;

import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.ArrayListHandler;
import org.apache.commons.dbutils.handlers.MapListHandler;
import toman.TOMan;

import javax.sql.DataSource;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: zslajchrt
 * Date: 2.5.11
 * Time: 17:50
 * To change this template use File | Settings | File Templates.
 */
public class MapResultSetQuery<T> extends ResultSetQuery<T> {

    public MapResultSetQuery(String sql, Class<T> toCls, TOMan toMan, DataSource ds, List<Object> parameters) {
        this(sql, toCls, toMan, new QueryRunner(ds), new MapListHandler(), parameters);
    }

    public MapResultSetQuery(String sql, Class<T> toCls, TOMan toMan, QueryRunner run, MapListHandler resultSetHandler,
                             List<Object> parameters) {
        super(sql, toCls, toMan, run, resultSetHandler, parameters);
    }
}
